package com.boomshake.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 佣金明细VO
 */
@Data
@Accessors(chain = true)
public class CommissionDetailVO {

    /**
     * 佣金汇总信息
     */
    @Data
    @Accessors(chain = true)
    public static class CommissionSummary {
        /**
         * 历史总佣金
         */
        private BigDecimal totalCommission;

        /**
         * 已提现佣金
         */
        private BigDecimal withdrawnCommission;

        /**
         * 待提现佣金
         */
        private BigDecimal pendingCommission;
    }

    /**
     * 佣金记录
     */
    @Data
    @Accessors(chain = true)
    public static class CommissionRecordItem {
        /**
         * 记录ID
         */
        private Long id;

        /**
         * 客户名称
         */
        private String customerName;

        /**
         * 订单金额
         */
        private BigDecimal orderAmount;

        /**
         * 佣金金额
         */
        private BigDecimal commissionAmount;

        /**
         * 佣金比例
         */
        private BigDecimal commissionRate;

        /**
         * 提现状态：0未提现 1已提现
         */
        private Integer withdrawalStatus;

        /**
         * 创建时间
         */
        private LocalDateTime createdAt;
    }

    /**
     * 佣金汇总
     */
    private CommissionSummary commissionSummary;

    /**
     * 佣金记录列表
     */
    private List<CommissionRecordItem> commissionRecords;
} 